package core.genetic;

import graphics.*;
import stats.*;
import core.*;
import core.neural.*;

public class Generations {
	public Generations() {

	}

	public void doNature(Population pop) {
		for (int i = 0; i < Mode.mode.nbGenerations; i++) {			
			double[] values = Mode.mode.evaluation.evaluate(pop);

			Mode.mode.simulation.drawSimulation(pop, values);
		
			Mode.mode.selection.select(pop, values);

			Statistics.advanceGenerations();
			Mode.mode.currentGeneration++;
		}
		Statistics.finish();
	}
}
